import request from "@/router/axios";

export const getFieldsManageList = ( params) => {
  return request({
    url: "/api/project-manager/sys/custom_fields/list",
    method: "get",
    params: { ...params },
  });
};

export const addFieldsItem = (row) => {
  return request({
    url: "/api/project-manager/sys/custom_fields/save",
    method: "post",
    data: row,
  });
};

export const deleteFieldsItem = (ids) => {
  return request({
    url: "/api/project-manager/sys/custom_fields/del",
    method: "delete",
    data: {
      ids: ids
    },
  });
};

export const updateFieldsItem = (row) => {
  return request({
    url: "/api/project-manager/sys/custom_fields/save",
    method: "post",
    data: row,
  });
};


export const getProjectTypeList = ( params) => {
  return request({
    url: "/api/project-manager/sys/project_type/list",
    method: "get",
    params: { ...params },
  });
};